import { IFormConfig } from '@/base-ui/form/src/types'

export const useFormConfig = (): IFormConfig => {
  return {
    labelWidth: '80px',
    labelPosition: 'right',
    formItem: [
      {
        field: 'rolename',
        type: 'input',
        label: '角色名称',
        placeholder: '请输入角色名称'
      },
      {
        field: 'intro',
        type: 'input',
        label: '权限介绍',
        placeholder: '请输入权限介绍'
      },
      {
        field: 'time',
        type: 'datePicker',
        label: '创建日期',
        otherOptions: {
          startPlaceholder: '开始时间',
          endPlaceholder: '结束时间',
          type: 'daterange'
        }
      }
    ]
  }
}
